Change in openvpn[master]: Add siphash reference implementation
A message that is not in the archive (sent off-list or not yet received): gerrit.1677175662000.I1292894fe7f537049a97bee97af4419e5e854a00@...2715...
Attention is currently required from: flichtenheld.
plaisthos has uploaded this change for review. ( http://gerrit.openvpn.net/c/openvpn/+/29?usp=email )
Change subject: Add siphash reference implementation
......................................................................
Add siphash reference implementation
OpenSSL only supports SIPHASH with OpenSSL 3.1 and newer. The source code of siphash is quite small and has very liberal CC0 license, so include it instead of pulling an extra library for it.
---
A src/openvpn/siphash.h
A src/openvpn/siphash_reference.c
2 files changed, 254 insertions(+), 0 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/29/29/6
src/openvpn/siphash.h new file +31 -0
@@ -0,0 +1,31 @@ +/* +* SipHash reference C implementation +* +* Copyright (c) 2012-2021 Jean-Philippe Aumasson +* <[email protected]...> +* Copyright (c) 2012-2014 Daniel J. Bernstein <[email protected]...> +* +* To the extent possible under law, the author(s) have dedicated all copyright +* and related and neighboring rights to this software to the public domain +* worldwide. This software is distributed without any warranty. +* +* You should have received a copy of the CC0 Public Domain Dedication along +* with +* this software. If not, see +* <http://creativecommons.org/publicdomain/zero/1.0/>. +*/ + +#ifndef SIPHASH_H +#define SIPHASH_H + +#include <inttypes.h> +#include <string.h> + +int siphash (const void *in,size_t inlen,const void *k,uint8_t *out, +size_t outlen); + +/* siphash always uses 128-bit keys */ +#define SIPHASH_KEY_SIZE 16 +#define SIPHASH_HASH_SIZE 16 + +#endif
src/openvpn/siphash_reference.c new file +223 -0
223 lines not on this page · raw message
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/29?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I1292894fe7f537049a97bee97af4419e5e854a00
Gerrit-Change-Number: 29
Gerrit-PatchSet: 6
Gerrit-Owner: plaisthos <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-MessageType: newchange
Attention is currently required from: flichtenheld, plaisthos.
MaxF has posted comments on this change. ( http://gerrit.openvpn.net/c/openvpn/+/29?usp=email )
Change subject: Add siphash reference implementation
......................................................................
Patch Set 6:
(2 comments)
Patchset:
PS6:
Looks good, just a nitpick
File src/openvpn/siphash_reference.c:
http://gerrit.openvpn.net/c/openvpn/+/29/comment/e1d16c48_b04f967d :
PS6, Line 29:
one space too many
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/29?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I1292894fe7f537049a97bee97af4419e5e854a00
Gerrit-Change-Number: 29
Gerrit-PatchSet: 6
Gerrit-Owner: plaisthos <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: MaxF <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Comment-Date: Sun, 22 Sep 2024 12:33:54 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: flichtenheld, plaisthos.
Hello flichtenheld,
I'd like you to reexamine a change. Please visit
http://gerrit.openvpn.net/c/openvpn/+/29?usp=email
to look at the new patch set (#7).
Change subject: Add siphash reference implementation
......................................................................
Add siphash reference implementation
OpenSSL only supports SIPHASH with OpenSSL 3.1 and newer. The source code of siphash is quite small and has very liberal CC0 license, so include it instead of pulling an extra library for it.
---
A src/openvpn/siphash.h
A src/openvpn/siphash_reference.c
2 files changed, 253 insertions(+), 0 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/29/29/7
src/openvpn/siphash.h new file +29 -0
@@ -0,0 +1,29 @@ +/* +* SipHash reference C implementation +* +* Copyright (c) 2012-2021 Jean-Philippe Aumasson +* <[email protected]...> +* Copyright (c) 2012-2014 Daniel J. Bernstein <[email protected]...> +* +* To the extent possible under law, the author(s) have dedicated all copyright +* and related and neighboring rights to this software to the public domain +* worldwide. This software is distributed without any warranty. +* +* You should have received a copy of the CC0 Public Domain Dedication along +* with +* this software. If not, see +* <http://creativecommons.org/publicdomain/zero/1.0/>. +*/ + +#ifndef SIPHASH_H +#define SIPHASH_H + +#include <inttypes.h> + +/* siphash always uses 128-bit keys */ +#define SIPHASH_KEY_SIZE 16 + +int siphash (const void *in,size_t inlen,const void *k,uint8_t *out, +size_t outlen); + +#endif
src/openvpn/siphash_reference.c new file +224 -0
224 lines not on this page · raw message
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/29?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I1292894fe7f537049a97bee97af4419e5e854a00
Gerrit-Change-Number: 29
Gerrit-PatchSet: 7
Gerrit-Owner: plaisthos <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: MaxF <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Attention is currently required from: flichtenheld, plaisthos.
MaxF has posted comments on this change by plaisthos. ( http://gerrit.openvpn.net/c/openvpn/+/29?usp=email )
Change subject: Add siphash reference implementation
......................................................................
Patch Set 8: Code-Review+2
(2 comments)
Patchset:
PS8:
I confirmed that the content of siphash_reference.c is the same as the reference implementation at https://github.com/veorq/SipHash/blob/master/siphash.c, disregarding coding style changes.
What I don't quite understand is why you added a MIT license on top of the original Public Domain statement.
File src/openvpn/siphash_reference.c:
http://gerrit.openvpn.net/c/openvpn/+/29/comment/660adec6_f9b28633?usp=email :
PS6, Line 29:
Quoted 1 line
one space too many
Done
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/29?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I1292894fe7f537049a97bee97af4419e5e854a00
Gerrit-Change-Number: 29
Gerrit-PatchSet: 8
Gerrit-Owner: plaisthos <[email protected]...>
Gerrit-Reviewer: MaxF <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Comment-Date: Thu, 12 Mar 2026 10:20:00 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: MaxF <[email protected]...>
Attention is currently required from: plaisthos.
flichtenheld has posted comments on this change by plaisthos. ( http://gerrit.openvpn.net/c/openvpn/+/29?usp=email )
Change subject: Add siphash reference implementation
......................................................................
Patch Set 8: Code-Review-1
(1 comment)
File src/openvpn/siphash.h:
http://gerrit.openvpn.net/c/openvpn/+/29/comment/8af7dd36_37d91fed?usp=email :
PS8, Line 24: #define SIPHASH_KEY_SIZE 16
clang-format is unhappy with this line
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/29?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I1292894fe7f537049a97bee97af4419e5e854a00
Gerrit-Change-Number: 29
Gerrit-PatchSet: 8
Gerrit-Owner: plaisthos <[email protected]...>
Gerrit-Reviewer: MaxF <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Comment-Date: Thu, 12 Mar 2026 11:38:02 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Attention is currently required from: flichtenheld.
plaisthos has posted comments on this change by plaisthos. ( http://gerrit.openvpn.net/c/openvpn/+/29?usp=email )
Change subject: Add siphash reference implementation
......................................................................
Patch Set 8:
(2 comments)
Patchset:
PS8:
Quoted 1 line
I confirmed that the content of
siphash_reference. […]
Having a license that I know works well and is clear felt better than interpretation of the public domain. But it does not really matter I guess.
File src/openvpn/siphash.h:
http://gerrit.openvpn.net/c/openvpn/+/29/comment/bf8b155d_9d0dce3c?usp=email :
PS8, Line 24: #define SIPHASH_KEY_SIZE 16
Quoted 1 line
clang-format is unhappy with this line
Done
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/29?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I1292894fe7f537049a97bee97af4419e5e854a00
Gerrit-Change-Number: 29
Gerrit-PatchSet: 8
Gerrit-Owner: plaisthos <[email protected]...>
Gerrit-Reviewer: MaxF <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Comment-Date: Thu, 12 Mar 2026 13:03:49 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: flichtenheld <[email protected]...>
Comment-In-Reply-To: MaxF <[email protected]...>
Attention is currently required from: MaxF, flichtenheld.
Hello MaxF, flichtenheld,
I'd like you to reexamine a change. Please visit
http://gerrit.openvpn.net/c/openvpn/+/29?usp=email
to look at the new patch set (#9).
The following approvals got outdated and were removed:
Code-Review+2 by MaxF, Code-Review-1 by flichtenheld
Change subject: Add siphash reference implementation
......................................................................
Add siphash reference implementation
OpenSSL only supports SIPHASH with OpenSSL 3.1 and newer. The source code of siphash is quite small and has very liberal CC0 license, so include it instead of pulling an extra library for it.
---
A src/openvpn/siphash.h
A src/openvpn/siphash_reference.c
2 files changed, 253 insertions(+), 0 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/29/29/9
src/openvpn/siphash.h new file +29 -0
@@ -0,0 +1,29 @@ +/* +* SipHash reference C implementation +* +* Copyright (c) 2012-2021 Jean-Philippe Aumasson +* <[email protected]...> +* Copyright (c) 2012-2014 Daniel J. Bernstein <[email protected]...> +* +* To the extent possible under law, the author(s) have dedicated all copyright +* and related and neighboring rights to this software to the public domain +* worldwide. This software is distributed without any warranty. +* +* You should have received a copy of the CC0 Public Domain Dedication along +* with +* this software. If not, see +* <http://creativecommons.org/publicdomain/zero/1.0/>. +*/ + +#ifndef SIPHASH_H +#define SIPHASH_H + +#include <inttypes.h> + +/* siphash always uses 128-bit keys */ +#define SIPHASH_KEY_SIZE 16 + +int siphash (const void *in,size_t inlen,const void *k,uint8_t *out, +size_t outlen); + +#endif
src/openvpn/siphash_reference.c new file +224 -0
224 lines not on this page · raw message
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/29?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I1292894fe7f537049a97bee97af4419e5e854a00
Gerrit-Change-Number: 29
Gerrit-PatchSet: 9
Gerrit-Owner: plaisthos <[email protected]...>
Gerrit-Reviewer: MaxF <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Attention: MaxF <[email protected]...>
Attention is currently required from: flichtenheld, plaisthos.
MaxF has posted comments on this change by plaisthos. ( http://gerrit.openvpn.net/c/openvpn/+/29?usp=email )
Change subject: Add siphash reference implementation
......................................................................
Patch Set 9: Code-Review+2
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/29?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I1292894fe7f537049a97bee97af4419e5e854a00
Gerrit-Change-Number: 29
Gerrit-PatchSet: 9
Gerrit-Owner: plaisthos <[email protected]...>
Gerrit-Reviewer: MaxF <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Comment-Date: Thu, 12 Mar 2026 15:29:30 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
PATCH v9 1/1 Add siphash reference implementation
In reply to a message not in the archiveFrom: Arne Schwabe <[email protected]...>
OpenSSL only supports SIPHASH with OpenSSL 3.1 and newer. The source code of siphash is quite small and has very liberal CC0 license, so include it instead of pulling an extra library for it.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/29
---
This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/29
This mail reflects revision 9 of this Change.
Acked-by according to Gerrit (reflected above):
MaxF <[email protected]...>
src/openvpn/siphash.h new file +29 -0
@@ -0,0 +1,29 @@ +/* +* SipHash reference C implementation +* +* Copyright (c) 2012-2021 Jean-Philippe Aumasson +* <[email protected]...> +* Copyright (c) 2012-2014 Daniel J. Bernstein <[email protected]...> +* +* To the extent possible under law, the author(s) have dedicated all copyright +* and related and neighboring rights to this software to the public domain +* worldwide. This software is distributed without any warranty. +* +* You should have received a copy of the CC0 Public Domain Dedication along +* with +* this software. If not, see +* <http://creativecommons.org/publicdomain/zero/1.0/>. +*/ + +#ifndef SIPHASH_H +#define SIPHASH_H + +#include <inttypes.h> + +/* siphash always uses 128-bit keys */ +#define SIPHASH_KEY_SIZE 16 + +int siphash (const void *in,size_t inlen,const void *k,uint8_t *out, +size_t outlen); + +#endif
src/openvpn/siphash_reference.c new file +224 -0
224 lines not on this page · raw message
[Openvpn-devel] [PATCH applied] Re: Add siphash reference implementation
In itself, this does not actually *do* anything, just adds two files (and Max has ACKed that "this is right implementation"). A future commit can then add Makefile handling, compat handling, etc.
Your patch has been applied to the master branch.
commit ea3b48f6758acdd5b9d001139b6237c7f913bb8b
Author: Arne Schwabe Date: Thu Mar 12 16:33:23 2026 +0100
Add siphash reference implementation
Signed-off-by: Arne Schwabe <[email protected]...>
Acked-by: MaxF <[email protected]...>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/29
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg36072.html
Signed-off-by: Gert Doering <[email protected]...>--
kind regards,
Gert Doering
cron2 has uploaded a new patch set (#10) to the change originally created by plaisthos. ( http://gerrit.openvpn.net/c/openvpn/+/29?usp=email )
The following approvals got outdated and were removed:
Code-Review+2 by MaxF
Change subject: Add siphash reference implementation
......................................................................
Add siphash reference implementation
OpenSSL only supports SIPHASH with OpenSSL 3.1 and newer. The source code of siphash is quite small and has very liberal CC0 license, so include it instead of pulling an extra library for it.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/29
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg36072.html
---
A src/openvpn/siphash.h
A src/openvpn/siphash_reference.c
2 files changed, 253 insertions(+), 0 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/29/29/10
src/openvpn/siphash.h new file +29 -0
@@ -0,0 +1,29 @@ +/* +* SipHash reference C implementation +* +* Copyright (c) 2012-2021 Jean-Philippe Aumasson +* <[email protected]...> +* Copyright (c) 2012-2014 Daniel J. Bernstein <[email protected]...> +* +* To the extent possible under law, the author(s) have dedicated all copyright +* and related and neighboring rights to this software to the public domain +* worldwide. This software is distributed without any warranty. +* +* You should have received a copy of the CC0 Public Domain Dedication along +* with +* this software. If not, see +* <http://creativecommons.org/publicdomain/zero/1.0/>. +*/ + +#ifndef SIPHASH_H +#define SIPHASH_H + +#include <inttypes.h> + +/* siphash always uses 128-bit keys */ +#define SIPHASH_KEY_SIZE 16 + +int siphash (const void *in,size_t inlen,const void *k,uint8_t *out, +size_t outlen); + +#endif
src/openvpn/siphash_reference.c new file +224 -0
224 lines not on this page · raw message
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/29?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I1292894fe7f537049a97bee97af4419e5e854a00
Gerrit-Change-Number: 29
Gerrit-PatchSet: 10
Gerrit-Owner: plaisthos <[email protected]...>
Gerrit-Reviewer: MaxF <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/29?usp=email )
Change subject: Add siphash reference implementation
......................................................................
Add siphash reference implementation
OpenSSL only supports SIPHASH with OpenSSL 3.1 and newer. The source code of siphash is quite small and has very liberal CC0 license, so include it instead of pulling an extra library for it.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/29
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg36072.html
---
A src/openvpn/siphash.h
A src/openvpn/siphash_reference.c
2 files changed, 253 insertions(+), 0 deletions(-)
src/openvpn/siphash.h new file +29 -0
@@ -0,0 +1,29 @@ +/* +* SipHash reference C implementation +* +* Copyright (c) 2012-2021 Jean-Philippe Aumasson +* <[email protected]...> +* Copyright (c) 2012-2014 Daniel J. Bernstein <[email protected]...> +* +* To the extent possible under law, the author(s) have dedicated all copyright +* and related and neighboring rights to this software to the public domain +* worldwide. This software is distributed without any warranty. +* +* You should have received a copy of the CC0 Public Domain Dedication along +* with +* this software. If not, see +* <http://creativecommons.org/publicdomain/zero/1.0/>. +*/ + +#ifndef SIPHASH_H +#define SIPHASH_H + +#include <inttypes.h> + +/* siphash always uses 128-bit keys */ +#define SIPHASH_KEY_SIZE 16 + +int siphash (const void *in,size_t inlen,const void *k,uint8_t *out, +size_t outlen); + +#endif
src/openvpn/siphash_reference.c new file +224 -0
224 lines not on this page · raw message
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/29?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I1292894fe7f537049a97bee97af4419e5e854a00
Gerrit-Change-Number: 29
Gerrit-PatchSet: 10
Gerrit-Owner: plaisthos <[email protected]...>
Gerrit-Reviewer: MaxF <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>